//
//  UIButton+Shadow.m
//  HappilyLoan
//
//  Created by zainishenbian on 2017/4/10.
//  Copyright © 2017年 zongqingxiangqian. All rights reserved.
//

#import "UIButton+Shadow.h"

@implementation UIButton (Shadow)

- (void)setShadowWidth:(CGFloat)shadowWidth shadowHeight:(CGFloat)shadowHeight shadowColor:(UIColor *)shadowColor radius:(CGFloat)radius
{
    self.layer.cornerRadius = radius;
    self.layer.shadowColor = shadowColor.CGColor;
    self.layer.shadowOffset = CGSizeMake(shadowWidth, shadowHeight);
    self.layer.shadowOpacity = 0.4;//阴影透明度，默认0
}
@end
